﻿@using OTE.Web.Infrastructure.Helper
<div class="nav-outer-repeat">
    <!--  start nav-outer -->
    <div class="nav-outer">
        <!-- start nav-right -->
        <div id="nav-right">
            <div class="nav-divider">
                &nbsp;</div>
            <a href="@Url.Content("~/Admin/Home/LogOut")" id="logout">
                <img src="@Url.Image("shared/nav/nav_logout.gif")" width="64" height="14" alt="" /></a>
            <div class="clear">
                &nbsp;</div>
        </div>
        <!-- end nav-right -->
        <!--  start nav -->
        <div class="nav">
            <!-- Get controller -->
            @{var controllerName = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString();}
            <div class="table">
                <ul class="@Html.Raw((controllerName.ToLower() == "category" ? "current" : "select"))">
                    <li><a href="@Url.Content("~/Admin/Category")"><b>Category</b></a></ul>
                <div class="nav-divider">
                    &nbsp;</div>
                <ul class="@Html.Raw((controllerName.ToLower() == "product" ? "current" : "select"))">
                    <li><a href="@Url.Content("~/Admin/Product")"><b>Product</b></a></ul>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <!--  start nav-outer -->
</div>